<template>
	<view class="page">
		<back :isBack="true" :isBg="false" :title="'城市合伙人'"></back>
		<view class="title_box">
			<view class="left_name_box">合伙人：{{ info.real_name }}</view>
			<view class="rt_city_box">所属城市：{{ info.city_name }}-{{ info.county_name }}</view>
		</view>
		<view class="parent_fl_box">
			<view class="dange_box" v-for="(item, index) in partnerList" :key="index" @click="navBtn(item)">
				<view class="tu_box">
					<image :src="item.img" mode="scaleToFill" />
				</view>
				<view class="zi_box">{{ item.name }}</view>
			</view>
		</view>
	</view>
</template>
<script>
import back from "@/components/goback/goback"
export default {
	components: {
		back
	},
	data() {
		return {
			partnerList: [
				{
					id: '1',
					img: 'https://build.lwjcg.com/uploads/wayStation.png',
					name: '站点申请',
					url: '/userPage/already/stationrequest'
				},
				{
					id: '2',
					img: 'https://build.lwjcg.com/uploads/station.png',
					name: '我的站点',
					url: '/userPage/already/waystation'
				}
			],
			info: {}

		}
	},
	onShow() {
		this.getpartnerInfo()
	},
	methods: {
		getpartnerInfo() {
			this.$Request.post(this.$api.user.partnerInfo).then(res => {
				if (res.code == 200) {
					this.info = res.data
				}
			})
		},
		navBtn(item) {
			this.$store.state.insterPep = {}
			uni.navigateTo({
				url: item.url
			})
		}
	}
}
</script>
<style lang="scss" scoped>
.page {
	width: 100vw;
	height: 100vh;
	background-image: url('https://build.lwjcg.com/uploads/partner.jpg');
	background-size: 100% 100%;

	.title_box {
		width: 100%;
		height: 40rpx;
		margin-top: 15rpx;
		display: flex;
		justify-content: space-between;
		box-sizing: border-box;
		padding: 0 46rpx;
		align-items: center;
		font-size: 28rpx;
		font-weight: 500;
		line-height: 40rpx;
		color: rgba(0, 0, 0, 1);
		margin-bottom: 220rpx;

		.left_name_box {
			width: 50%;
			height: 40rpx;
		}

		.rt_city_box {
			width: 50%;
			height: 40rpx;
		}
	}

	.parent_fl_box {
		width: 704rpx;
		height: 292rpx;
		border-radius: 28rpx;
		background: rgba(255, 255, 255, 1);
		margin: auto;
		display: flex;
		justify-content: space-between;
		align-items: center;
		box-sizing: border-box;
		padding: 0 88rpx;

		.dange_box {
			height: 180rpx;
			width: 150rpx;

			.tu_box {
				width: 100rpx;
				height: 100rpx;
				margin: auto;
				margin-bottom: 34rpx;

				image {
					width: 100rpx;
					height: 100rpx;
				}

			}

			.zi_box {
				width: 150rpx;
				height: 44rpx;
				font-size: 30rpx;
				font-weight: 700;
				line-height: 44rpx;
				color: rgba(0, 0, 0, 1);
				text-align: center;

			}
		}
	}


}
</style>